//
//  UIDatePicker+CustomDatePicker.m
//  Sampux
//
//  Created by rzm on 16/7/15.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "UIDatePicker+CustomDatePicker.h"

@implementation UIDatePicker (CustomDatePicker)

- (void)changeSpearatorLineColor
{
    for (UIView *subView1 in self.subviews)
    {
        if ([subView1 isKindOfClass:[UIPickerView class]])//取出UIPickerView
        {
            for(UIView *subView2 in subView1.subviews)
            {
                if (subView2.frame.size.height < 1)//取出分割线view
                {
                    subView2.backgroundColor = THWhiteAlplaColor(0.8);
//                    subView2.hidden = YES;//隐藏分割线
                }
            }
        }
    }
}

- (void)changSpearatorBlueLineColor
{
    for (UIView *subView1 in self.subviews)
    {
        if ([subView1 isKindOfClass:[UIPickerView class]])//取出UIPickerView
        {
            for(UIView *subView2 in subView1.subviews)
            {
                if (subView2.frame.size.height < 1)//取出分割线view
                {
                    subView2.backgroundColor = THDeFaultBlueColor;
                    //                    subView2.hidden = YES;//隐藏分割线
                }
            }
        }
    }
}

@end
